package com.smrs.deliver.webapp.action;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.smrs.deliver.enums.DeliverStatusEnum;
import com.smrs.deliver.enums.DeliverTypeEnum;
import com.smrs.deliver.service.DeliverDetailService;
import com.smrs.deliver.service.DeliverHeaderService;
import com.smrs.deliver.service.DeliverSequenceService;
import com.smrs.basicdata.enums.StoreTypeEnum;
import com.smrs.basicdata.model.RegionModel;
import com.smrs.basicdata.model.StoreModel;
import com.smrs.basicdata.service.RegionService;
import com.smrs.basicdata.service.StoreService;
import com.smrs.goods.model.SupplierModel;
import com.smrs.goods.service.GoodsSkuService;
import com.smrs.goods.service.SupplierService;
import com.smrs.util.DictConstants;
import com.smrs.webapp.action.BaseSmrsAction;

/**
 * 基础数据模块基类action
 * @author jonathan
 *
 */
public abstract class BaseDeliverAction extends BaseSmrsAction {
	private static final long serialVersionUID = 8432181644174225351L;
	
	
	protected String toInput="toInput";
	
	@Autowired
	protected DeliverDetailService deliverDetailService;
	
	@Autowired
	protected DeliverHeaderService deliverHeaderService;

	@Autowired
	protected DeliverSequenceService deliverSequenceService;
	
	@Autowired
	protected SupplierService  supplierService;
	@Autowired
	protected StoreService storeService;
	@Autowired
	protected RegionService regionService;
	
	@Autowired
	protected GoodsSkuService goodsSkuService;
	
	public abstract String getTitleName();

	
	protected List<SupplierModel> supplierList = new ArrayList<SupplierModel>();
	protected List<StoreModel> storeList = new  ArrayList<StoreModel>();
	protected List<RegionModel> regionList = new  ArrayList<RegionModel>();
	
	protected List<DeliverTypeEnum> deliverTypeList =null;// DictConstants.getInstance().getDeliverTypeList();
	
	protected List<StoreTypeEnum> storeTypeList =DictConstants.getInstance().getStoreTypeList();
	
	protected List<DeliverStatusEnum> deliverStatusList =null;// DictConstants.getInstance().getDeliverStatusList();
	
	public List<DeliverStatusEnum> getDeliverStatusList() {
		return deliverStatusList;
	}
	public List<DeliverTypeEnum> getDeliverTypeList() {
		return deliverTypeList;
	}
	public void setDeliverTypeList(List<DeliverTypeEnum> deliverTypeList) {
		this.deliverTypeList = deliverTypeList;
	}
	public List<SupplierModel> getSupplierList() {
		return supplierList;
	}
	public void setSupplierList(List<SupplierModel> supplierList) {
		this.supplierList = supplierList;
	}
	public List<StoreModel> getStoreList() {
		return storeList;
	}
	public void setStoreList(List<StoreModel> storeList) {
		this.storeList = storeList;
	}
	public List<RegionModel> getRegionList() {
		return regionList;
	}
	public void setRegionList(List<RegionModel> regionList) {
		this.regionList = regionList;
	}
	public List<StoreTypeEnum> getStoreTypeList() {
		return storeTypeList;
	}

}
